package com.xjggb.cloud.service.impl;

import com.xjggb.cloud.entity.Payment;
import com.xjggb.cloud.mapper.PaymentMapper;
import com.xjggb.cloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;


    @Override
    public int add(Payment payment) {

        return  paymentMapper.add(payment);
    }

    @Override
    public Payment getPayment(Long id) {
        return paymentMapper.getPayment(id);
    }
}
